﻿package 多种运算符场景练习;
//多种运算符场景练习
public class Main {
	
	public static void test01() {
		byte a = 10;
		a += 13.14;
		System.out.println(a);
	}
	
	public static void test02() {
		int count = 0;
		++count;
		++count;
		++count;
		System.out.printf("当前点赞人数为：%d\n",count);
		--count;
		System.out.printf("当前点赞人数为：%d\n",count);
	}
	
	public static void test03() {
		double price = 5000;
		System.out.printf("当前手机的价格是否符合用户要求:%b\n",price >= 4000 && price <= 6000);
	}
	
	public static void test04() {
		int year = 2050;
		System.out.printf("%d年是否为闰年：%b\n",year,(year % 4 == 0 && year % 100 != 0) || year % 400 == 0);
	}
	
	public static void main(String[] args) {
		test01();
		test02();
		test03();
		test04();
	}

}
